<!DOCTYPE html>
<html>
<head>
    <title>金银猫CSmall金银珠宝首饰在线交易平台--金银猫CSmall</title>
    <meta name="keywords" content="{$metaKeywords}"/>
    <meta name="description" content="{$metaDesc}"/>
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="Bookmark" href="favicon.ico">
    <link rel="Shortcut Icon" href="favicon.ico">
    <link type="text/css" rel="stylesheet" href="../css/common.css">
    <link type="text/css" rel="stylesheet" href="../css/index.css">
    <link type="text/css" rel="stylesheet" href="../css/eui.css">

    <style>
        .index_product_list_box {
            width: 1190px;
            background-color: white;
            margin: 0 auto;
            border-radius: 18px;
        }

        .index_product_list {
            padding-top: 20px;
        }

        .index_product_detail {
            width: 215px;
            height: 320px;
            margin: 0 0 30px 18px;
            border: 1px solid red;
            float: left
        }

       .el-button.is-round{
           margin: 150px 180px 10px 50px;
       }
        #nav{
            background-color: #820c0c;
        }
        #nav li .nava{
            color: white;
        }
    </style>
</head>
<body>
<!--头部部分 开始-->

<!--登录状态栏 开始-->
<div class="topbar">
    <div class="wrap iconlist">
        <div class="memberbox width-6">嗨！欢迎来到金猫银猫 <a href="#">请登录</a> <a href="#">免费注册</a></div>
        <div class="width-6">
            <a href="#"><i class="icon_heart icon_topbar"></i>我关注的品牌</a>
            <a href="#">金猫银猫会员</a>
            <a href="#"><i class="icon_shopcart icon_topbar"></i>购物车<span id="shopcart_count">0</span>件</a>
            <span class="fav">收藏夹<i class="icon icon_dropdown"></i></span> |
            <span><i class="icon_phone icon_topbar"></i>手机版</span>
            <span class="fav">商家支持<i class="icon icon_dropdown"></i></span>
            <span class="fav"><i class="icon_shopcart icon_topbar"></i>网站导航<i class="icon icon_dropdown"></i></span>
        </div>
    </div>
</div>
<!--登录状态栏 结束-->
<div id="header">
    <div class=" wrap">
        <div class="logobar width-3">
        </div>
        <!--搜索栏 开始-->
        <div id="searchbar" class="width-6">
            <form method="get" action="/searchResult.html">
                <input type="text" name="keywords" class="txt" value="" placeholder="站内搜索"/>
                <input type="submit" class="bt" value="搜索"/>
                <div class="clear"></div>
            </form>
            <a href="#">手链</a> |
            <a href="#">项链</a> |
            <a href="#">手镯</a> |
            <a href="#">戒指</a> |
            <a href="#">耳环</a> |
            <a href="#">耳钉</a> |
            <a href="#">胸针</a> |
            <a href="#">耳夹</a>
        </div>
        <!--搜索栏 结束-->
    </div>
</div>
<div style="clear:both"></div>

<!--导航 开始-->
<div id="nav">
    <ul class="wrap">
        <li class="width-1"><a href="/brand.html?id=1" class="nava">施华洛世奇</a></li>
        <li class="width-1"><a href="/brand.html?id=2" class="nava">潘多拉</a></li>
        <li class="width-1"><a href="/brand.html?id=3" class="nava">ZENGLIU</a></li>
        <li class="width-1"><a href="/brand.html?id=4" class="nava">卡蒂罗</a></li>
        <li class="width-1"><a href="/brand.html?id=5" class="nava">东方佳人</a></li>
        <li class="width-1"><a href="/brand.html?id=6" class="nava">GLTEN</a></li>
        <li class="width-1"><a href="/brand.html?id=7" class="nava">VIGG</a></li>
        <li class="width-1"><a href="/brand.html?id=8" class="nava">花芽</a></li>
        <li class="width-1"><a href="/brand.html?id=9" class="nava">瑷嘉莎</a></li>
        <li class="width-1"><a href="/brand.html/?id=10" class="nava">爱洛奇</a></li>
    </ul>
    <div class="clear"></div>
</div>
<!--导航 结束-->

<!--头部部分 结束-->

<div id="mainer">
    <el-container>
        <el-header></el-header>
        <el-main style="width: 1200px;margin: -50px auto 0 auto">
            <el-row :gutter="10">
                <el-col :span="16">
                    <!--走马灯开始-->
                    <el-carousel trigger="click" height="300px">
                        <el-carousel-item v-for="b in  bannerArr">
                            <img :src="b.url" style="width: 100%;height: 100%" alt="666666666666">
                        </el-carousel-item>
                    </el-carousel>
                    <!--走马灯结束-->
                </el-col>
                <el-col :span="8">
                    <el-card>
                        <el-col :span="12" style="margin-bottom: 80px ">
                            <a href="/login.html">
                                <el-button type="primary" round>登入</el-button>
                            </a>
                        </el-col>

                        <el-col :span="12">
                        <a href="/reg.html">
                            <el-button type="primary" round>注册</el-button>
                        </a>
                            </el-col>
                    </el-card>
                </el-col>
            </el-row>
            <!--商品列表开始-->
            <el-row :gutter="20">
                <el-col :span="6" v-for=" p in productArr">
                    <el-card :body-style="{ padding: '0px'}">
                        <div class="item_div" style="padding: 20px 20px 0 20px">
                        <a :href="'/detail.html?id='+p.id">
                            <img :src="p.urls" width="100%" height="100%">
                        </a>

                        </div>
                        <div style="padding: 14px;" >
                            <a :href="'/detail.html?id='+p.id" style="text-decoration: none;color: #333">
                                <p style="margin-top: 0;font-size: 15px;height: 38px">{{p.short_title}}</p>
                            </a>
                            <div class="bottom clearfix" style="color: #6c6c6c" >
                             <!--   <span style="float: left" v-for=" t in protypeArr">${{t.price}}</span>-->
                                <span style="float: right">销量:{{p.sale_count}}件</span>
                            </div>
                        </div>
                    </el-card>

                </el-col>
            </el-row>

            <!--商品列表结束-->
        </el-main>
        <el-footer></el-footer>
    </el-container>

</div>

</div>

<!-- 右侧黑色边栏 开始-->
<div class="mui-mbar-tabs-mask">
    <div class="mui-mbar-tab mui-mbar-tab-cart" style="top: 0px; margin: 8px 0px;">
        <div class="mui-mbar-tab-logo mui-mbar-tab-logo-cart"></div>
        <div class="mui-mbar-tab-txt">购物车</div>
        <div class="mui-mbar-tab-sup">
            <div class="mui-mbar-tab-sup-bg">
                <div class="mui-mbar-tab-sup-bd">7</div>
            </div>
        </div>
    </div>
    <div class="mui-mbar-tab mui-mbar-tab-favor" style="top: 0px; margin: 8px 0px;">
        <div class="mui-mbar-tab-logo mui-mbar-tab-logo-favor"></div>
        <div class="mui-mbar-tab-tip">我的收藏
            <div class="mui-mbar-arr mui-mbar-tab-tip-arr">◆</div>
        </div>
    </div>
    <div class="mui-mbar-tab mui-mbar-tab-asset" style="top: 0px; margin: 8px 0px;">
        <div class="mui-mbar-tab-logo "></div>
        <div class="mui-mbar-tab-tip">我的资产
            <div class="mui-mbar-arr mui-mbar-tab-tip-arr">◆</div>
        </div>
    </div>
    <div class="mui-mbar-tab mui-mbar-tab-brand" style="top: 0px; margin: 8px 0px;">
        <div class="mui-mbar-tab-logo "></div>
        <div class="mui-mbar-tab-tip">我关注的品牌
            <div class="mui-mbar-arr mui-mbar-tab-tip-arr">◆</div>
        </div>
    </div>
    <div class="mui-mbar-tab mui-mbar-tab-favor" style="top: 0px; margin: 8px 0px;">
        <div class="mui-mbar-tab-logo "></div>
        <div class="mui-mbar-tab-tip">我的收藏
            <div class="mui-mbar-arr mui-mbar-tab-tip-arr">◆</div>
        </div>
    </div>
    <div class="mui-mbar-tab mui-mbar-tab-foot" style="top: 0px; margin: 8px 0px;">
        <div class="mui-mbar-tab-logo "></div>
        <div class="mui-mbar-tab-tip">我的收藏
            <div class="mui-mbar-arr mui-mbar-tab-tip-arr">◆</div>
        </div>
    </div>
</div>
<!-- 右侧黑色边栏 结束-->

<!-- 底部内容 开始 -->
<div id="footer">
    <div class="wrap">
        <div class="line"></div>
        <div class="help">
            <dl class="width-2">
                <dt>购物指南</dt>
                <dd><a href="{$prefix}article/?id={$v.id}">购买流程</a></dd>
                <dd><a href="{$prefix}article/?id={$v.id}">支付方式</a></dd>
            </dl>
            <dl class="width-2">
                <dt>购物保障</dt>
                <dd><a href="{$prefix}article/?id={$v.id}">购买流程</a></dd>
                <dd><a href="{$prefix}article/?id={$v.id}">支付方式</a></dd>
            </dl>
            <dl class="width-2">
                <dt>售后服务</dt>
                <dd><a href="{$prefix}article/?id={$v.id}">购买流程</a></dd>
                <dd><a href="{$prefix}article/?id={$v.id}">支付方式</a></dd>
            </dl>
            <dl class="width-2">
                <dt>关于我们</dt>
                <dd><a href="{$prefix}article/?id={$v.id}">购买流程</a></dd>
                <dd><a href="{$prefix}article/?id={$v.id}">支付方式</a></dd>
            </dl>
            <dl class="width-4">
                <dt>手机上金猫银猫</dt>
                <dd><a href="{$prefix}article/?id={$v.id}">购买流程</a></dd>
                <dd><a href="{$prefix}article/?id={$v.id}">支付方式</a></dd>
            </dl>


            <div style="clear:both"></div>
        </div>
        <!-- help -->
    </div>

    <div class="copyright">
        <p class="copy wrap">
            <a href="#">关于金猫银猫</a>
            <a href="#">帮助中心</a>
            <a href="#">诚聘英才</a>
            <a href="#">联系我们</a>
            <a href="#">网站合作</a>
            <a href="#">法律声明</a>
            <a href="#">廉政举报</a><br>
            <a href="#">京东商城</a> |
            <a href="#">中国白银网</a> |
            <a href="#">央视网</a> |
            <a href="#">1号店</a> |
            <a href="#">京东商城</a> |
            <a href="#">中国白银网</a> |
            <a href="#">央视网</a> |
            <a href="#">1号店</a> <br>

            <a href="http://www.csmall.com/help.do?page=help_help_icp" target="_blank">中国增值电信业务经营许可证 B2-20140169号</a>
            <span style="line-height:1.5;"> | ©2014深圳银瑞吉文化发展有限公司 All Rights Reserved | 国家信息产业部粤ICP备14018586号</span>
            <span class="powerby">技术支持：<a href="http://www.jentian.com/" target="_blank" title="广东井田云科技有限公司">井田云</a>
                        <br>
                        <a href="http://si.trustutn.org/info?sn=131141223010513021410" target="_blank"><img
                                src="http://v.trustutn.org/images/cert/bottom_small_img.png" alt="实名认证"
                                title="实名认证"></a>
                    </span>
        </p>
    </div>
    <div class="clear"></div>
</div>
<!-- 底部内容 结束 -->
</body>


<script src="js/vue.min.js"></script>
<!-- import JavaScript -->
<script src="js/eui.js"></script>
<script src="js/axios.min.js"></script>
<script>
    let v = new Vue({
        el: "#mainer",
        data: function () {
            return {
                bannerArr: [],
                productArr: [],
                protypeArr:[]
            }
        },
        methods:{
            search(){
                //跳转到结果页面并且把搜索的关键字传递过去
                location.href = "/result.html?wd="+v.wd;
            },
            handleSelect(index){
                console.log(index);
                //传递过来的index 其实就是分类的id
                //跳转到新的页面显示这个分类下的商品信息
                if (index!=-1){//判断出点击的不是搜索框
                    location.href="/result.html?cid="+index;
                }

            }
        },
        created:function(){
            //发请求获取所有的分类信息
           /* axios.get("/category/select").then(function (response) {
                v.categoryArr = response.data;
            });*/
            //发请求获取所有轮播图信息
            axios.get("admin/bannerList").then(function (response) {
                v.bannerArr = response.data;
            });
            //发请求获取所有商品信息
            axios.get("/index/productList").then(function (response) {

                v.productArr = response.data;
            });
            // //发请求获取商品规格(现价 原价)
            axios.get("/protype/index/select").then(function (response) {
                 v.protypeArr = response.data;
             });
            //发请求获取排行榜数据
       /*     axios.get("/product/select/top").then(function (response) {
                v.topArr = response.data;
        })*/

        }

    })


</script>

</html>